import request from '@/utils/request'

// 获取风险分析列表
export function getFmeaGrid(query) {
  return request({
    url: '/fmea/common/fmeaGrid/list',
    method: 'get',
    params: query
  })
}

export function queryFmeaTable(data) {
  return request({
    url: `/fmea/common/fmeaGrid/queryFmeaTable`,
    method: 'get',
    params: data
  })
}

// 获取风险矩阵图
export function findRiskMatrixAnalysisList(data) {
  return request({
    url: `/fmea/common/fmeaGrid/findRiskMatrixAnalysisList`,
    method: 'get',
    params: data
  })
}

export function queryRiskMatrixAnalysis(data) {
  return request({
    url: `/fmea/common/fmeaGrid/queryRiskMatrixAnalysis`,
    method: 'get',
    params: data
  })
}
